package com.lyc.wanandroid_kotlin.ui.activity.login.mvp.contract

import com.lyc.wanandroid_kotlin.base.IModel
import com.lyc.wanandroid_kotlin.base.IPresenter
import com.lyc.wanandroid_kotlin.base.IView
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.bean.LoginData
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.login.mvp.contract
 * Description:
 */
interface LoginContract {

    interface View  : IView {

        fun loginSuccess(data: LoginData)

        fun loginFail()

    }

    interface Presenter: IPresenter<View> {
        fun loginWanAndroid(username: String, password: String)
    }

    interface Model: IModel {
        fun loginWanAndroid(username: String, password: String): Observable<HttpResult<LoginData>>
    }
}